//
//  SMFManagerTool.h
//  SMFManager
//
//  Created by ZhouYou on 2022/9/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SMFManagerTool : NSObject

+ (NSString *)createUUID;//获取一个32位的随机字符串，每次获取均不同

+ (NSString *)device_uuid;//获取设备的唯一id

+ (NSString *)device_tel_carrier;//获取设备运营商

+ (NSString *)device_plantform;//获取设备型号

+ (NSString *)device_network_type;//网络情况，1=wifi,2=蜂窝，0=不可用

+ (NSString *)smf_appversion;//app版本号

+ (NSString *)smf_buildversion;//app build号

+ (NSString *)smf_platformString;

+ (NSTimeInterval)now_time;//当前时间的时间戳,timeIntervalSince1970

+ (id)jsonObject:(NSString *)json;//json转NSDictionary或NSArray

+ (NSString *)jsonString:(NSDictionary *)dic;//NSDictionary转json

+ (NSString *)decodeString:(NSString *)decodeStr withKey:(NSString *)key;

+ (NSString *)encodeString:(NSString *)encodeStr withKey:(NSString *)key;

@end

NS_ASSUME_NONNULL_END
